<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<%@ taglib prefix="paasfn"
	uri="http://www.glodon.com/paas/jsp/functions"%>

<!--============== 活动定义   1============== -->
<table class="table">
	<tr style="background-color: #ccc; text-align: center;">
		<td>No</td>
		<td>活动类型(ID)</td>
		<!-- activityType -->
		<td>模块ID</td>
		<td>活动类型</td>
		<td>活动名(英文)</td>
		<td>活动名(中文)</td>
		<td>状态</td>
		<!-- status -->
		<td>方法</td>
		<!-- status -->
	</tr>
	<!--============== 活动  1============== -->
	<!-- item:ActivityDefinitionEntity -->
	<c:forEach items="${items}" var="item" varStatus="status">
		<tr>
			<td>${status.count}</td>
			<td>${item.activityType}</td>
			<td>${item.modelId}</td>
			<td>${item.type}</td>
			<td>${item.actionNameEn}</td>
			<td>${item.actionNameCn}</td>
			<td>${item.status}</td>
			<td style="text-align: center"><a
				href="javascript:viewDefinition(${item.activityType})">查看</a> <a
				href="javascript:deleteDefinition(${item.activityType})">删除</a></td>
		</tr>
	</c:forEach>
	<tr>
		<td colspan="7">${status.count}</td>
		<td><a href="javascript:newDefinition()">新增定义</a></td>
	</tr>
</table>
